﻿@{
    ViewBag.Title = "IndexSelfInfo";
}
@using Webdiyer.WebControls.Mvc;
@model PagedList<SelfInfo.Models.SELFINFO>
<h2>Index SelfInfo</h2>


<p>
 @Html.ActionLink("Create One", "CreateSelfInfo")
</p>
<table>
   <thead>
      <tr>
         <td>ID</td>
         <td>PIECEID</td>
         <td>DATE</td>
         <td>SCORE</td>
         <td>TIME</td>
         <td>BRIEF</td>
         <td>COMMENT</td>
      </tr>
   </thead>
   <tbody>
    @foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PIECE.NAME)
        </td>
        <td>
            @item.TODAY.ToString("yyyy-MM-dd")
        </td>
       
         <td>
            @Html.DisplayFor(modelItem => item.SCORE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TIME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BRIEF)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.COMMENT)
        </td>
       
        <td>
            @Html.ActionLink("Edit", "EditSelfInfo", new { id = item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ID }) 
        </td>
    </tr>
    }
   </tbody>

</table>
    <br />
    @Html.Pager(Model, new PagerOptions
    {
        PageIndexParameterName = "id",
        ShowPageIndexBox = true,
        FirstPageText = "FIRST",
        PrevPageText = "PREV",
        NextPageText = "NEXT",
        LastPageText = "LAST",
        PageIndexBoxType = PageIndexBoxType.TextBox,
        PageIndexBoxWrapperFormatString = "NUM{0}",
        GoButtonText = "TO"
    })
    
    共有 @Model.TotalItemCount 篇留言 @Model.CurrentPageIndex/@Model.TotalPageCount